#include<stdio.h>
#include<stdlib.h>
#include "Piece.h"
#include "Terrain.h"
#include "Jeu.h"

void AfficheTerrain (Terrain * ter)
{
	int i, j;

	printf("les positions de la piece sont : \n");
	printf("%d",ter->x);
	printf("%d", ter->y);

	printf("le terrain est : \n");
	for(i=0; i<20;i++)
	{
		for(j=0;j<10;j++)
		{
			printf ("%d",ter->terrain[i][j]);
		}
		printf("\n");
	}
}
int main()
{
  int i;
  Terrain * ter;
	
  ter=CreerTerrain();	
  InitTerrain(ter);

  AfficheTerrain(ter);


  i=GetEtatTerrain(ter, 12,6);
  printf("GetEtat retourne %d \n",i);

  LibereTerrain(ter);
  return 0;
}
